package com.cloud.rou.im.client.msg;

import com.cloud.rou.im.client.api.event.IMClientEvent;
import com.cloud.rou.im.core.base.ResultVO;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 */
public interface WorkListener {



    void listen(ResultVO result);



/*    *//**
     * do when the client connect to connector successfully
     *//*
    void online();

    *//**
     * read a msg
     *
     * @param chatMsg
     *//*
    void read(ChatMsg chatMsg);

    *//**
     * do when a msg has been sent
     *
     * @param id chatMsg msg id
     *//*
    void hasSent(Long id);

    *//**
     * do when a msg has been delivered
     *
     * @param id chatMsg msg id
     *//*
    void hasDelivered(Long id);

    *//**
     * do when a msg has been read
     *
     * @param id chatMsg msg id
     *//*
    void hasRead(Long id);

    *//**
     * do when the client disconnect to connector
     *//*
    void offline();

    *//**
     * a exception is occurred
     *
     * @param ctx
     * @param cause
     *//*
    void hasException(ChannelHandlerContext ctx, Throwable cause);*/
}
